package com.capgemini.scaffold.common;

import lombok.Getter;

public enum ExceptionEnum {
    SUCCESS(1000,"ok"),
    DUPLICATE_USER_ACCOUNT(1001, "用户账号已存在"),
    PARAMS_ERROR(1002,"参数请求错误"),
    NULL_ERROR(1003,"请求数据为空"),
    NOT_LOGIN(1004,"未登录"),
    NO_AUTH(1005,"无权限"),
    SYSTEM_ERROR(1006,"系统内部异常");

    @Getter
    private int code;
    @Getter
    private String message;

    ExceptionEnum(int code, String message) {
        this.code = code;
        this.message = message;
    }
}
